<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>投标保证金管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/zx/bidBond/">项目列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="bidBond" action="${ctx}/zx/bidBond/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li>
				<label>项目具体分类：</label>
				<sys:treeselect id="keyword" name="lzd.keyword.id" value="${bidBond.lzd.keyword.id}" labelName="lzd.keyword.name" labelValue="${bidBond.lzd.keyword.name}"
					title="项目具体分类" url="/zx/keyword/treeData" cssClass="required" />
			</li>
			
			<li>
				<label>项目名称：</label>
				<form:input path="lzd.proName" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<%-- <li>
				<label>退换时间：</label>
				<input name="returnableTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${bidBond.returnableTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li> --%>
			
			<li class="clearfix"></li>
			<%-- <li>
				<label>缴纳金额：</label>
				<form:input path="paySum" htmlEscape="false" class="input-medium"/>
			</li> --%>
			<%-- <li>
				<label>缴纳形式：</label>
				<form:input path="payMode" htmlEscape="false" maxlength="32" class="input-medium"/>
			</li> --%>
			<%-- <li>
				<label>缴纳时间：</label>
				<input name="payTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${bidBond.payTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li> --%>
			<li>
				<label>项目分类：</label>
				<sys:treeselect id="cgml" name="lzd.cgml.id" value="${lzd.cgml.id}" labelName="lzd.cgml.name" labelValue="${bidBond.lzd.cgml.name}"
					title="项目具体分类" url="/zx/cgml/treeData" cssClass="required" />
			</li>
			<li>
				<label>项目编号：</label>
				<form:input path="lzd.proNo" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>			
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>项目名称</th>
				<th>项目编号</th>
				<th>项目类型</th>
				<th>项目执行人</th>
				<th>项目负责人</th>
				<th>缴纳截止时间</th>
				<!-- <th>缴纳金额</th> -->
				<!-- <th>缴纳时间</th> -->
				<!-- <th>是否缴纳</th> -->
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="bidBond">
			<tr>
				<td> 
					${bidBond.lzd.proName}
					<span class="label label-success" style="margin-left: 5px;font-size: 90%;font-weight: 400;">${bidBond.section.sectionName}</span>
					<c:choose>
						<c:when test="${bidBond.lzd.isSubpackage eq '1'}">
							<c:if test="${bidBond.section.trashPro eq '0'}">
								<span class="label label-warning" style="margin-left: 5px;font-size: 90%;font-weight: 400;">废标</span>
							</c:if>
							<c:if test="${not empty bidBond.section.resetSectionId}">
								<span class="label label-info" style="margin-left: 5px;font-size: 90%;font-weight: 400;">${bidBond.section.restartCount}次</span>
							</c:if>
						</c:when>
						<c:otherwise>
							<c:if test="${bidBond.lzd.trashPro eq '0'}">
								<span class="label label-warning" style="margin-left: 5px;font-size: 90%;font-weight: 400;">废标</span>
							</c:if>
							<c:if test="${not empty bidBond.lzd.resetLzdId}">
								<span class="label label-info" style="margin-left: 5px;font-size: 90%;font-weight: 400;">${bidBond.lzd.restartCount}次</span>
							</c:if>
						</c:otherwise>
					</c:choose>	
				</td>
				<td>
					${bidBond.lzd.proNo}
				</td>
				<td>
					${bidBond.lzd.cgml.name}
				</td>
				<td>
					${bidBond.lzd.proPerformer}
				</td>
				<td>
					${bidBond.lzd.proPic}
				</td>
				<td><fmt:formatDate value="${bidBond.tenderSaleDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<%-- <td>
					${bidBond.paySum}
				</a> --%>
				<%-- <td>
					<fmt:formatDate value="${bidBond.payTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td> --%>
				<%-- <td>
					<c:if test="${empty bidBond.payResult || bidBond.payResult eq '0'}">
						<span class="label label-warning" style="margin-left: 5px;font-size: 90%;font-weight: 400;">未缴纳</span>
					</c:if>
					<c:if test="${bidBond.payResult eq '1'}">
						<span class="label label-success" style="margin-left: 5px;font-size: 90%;font-weight: 400;">已缴纳</span>
					</c:if>
				</td> --%>
				<td>
					<c:choose>
						<c:when test="${bidBond.lzd.isSubpackage eq '1'}">
							<c:if test="${bidBond.section.trashPro != '0'}">
								<a href="${ctx}/zx/bidBond/form?lzdId=${bidBond.lzd.id}&sectionId=${bidBond.section.id}">保证金信息</a>
							</c:if>
						</c:when>
						<c:otherwise>
							<c:if test="${bidBond.lzd.trashPro != '0'}">
								<a href="${ctx}/zx/bidBond/form?lzdId=${bidBond.lzd.id}&sectionId=${bidBond.section.id}">保证金信息</a>
							</c:if>
						</c:otherwise>
					</c:choose>
					
	    			<%-- <shiro:hasPermission name="zx:bidBond:view">
	    				<a href="${ctx}/zx/all/lzd/getLzdAllInfo?lzdId=${bidBond.lzd.id}&pageFlag=bidBondShow"> 查看详情</a>
	    				<a href="${ctx}/zx/bidBond/show?lzdId=${bidBond.lzd.id}&sectionId=${bidBond.section.id}">查看详情</a>
	    			</shiro:hasPermission> --%>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>